package com.dao;

import com.pojo.DispatchOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface DispatchMapper {
    @Insert("insert into dispatch_order (id, date,address,state,sum,goods_id,number,order_id,sals_keeper_id,warehouse_keeper_id) values (#{id}, #{date},#{address}, #{state},#{sum}, #{goodsid},#{number}, #{orderid},#{adminid}, #{warehouseid})")
    boolean insert(DispatchOrder dispatchOrder);


    @Select("select * from dispatch_order where id = #{id}")
    DispatchOrder select(int id);
}
